<html>

    <script>

        let username = getQueryVariable("username")
        let password = getQueryVariable("password")
        let redirect = getQueryVariable("redirect")
        localStorage.setItem("token",username+"#"+password);
        window.location.replace(redirect);

        function getQueryVariable(variable){
            const reg = new RegExp("(^|&)" + variable + "=([^&]*)(&|$)");
            const r = window.location.search.substr(1).match(reg);
            if(r!=null)
                return unescape(r[2]);
            return null;
        }
    </script>
</html>